package com.kgc.springboot.aviation.config.jianghongkun;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * ClassName: MyMvcConfig <br/>
 * Description: <br/>
 * date: 2020/12/29 19:05<br/>
 *
 * @author 姜洪坤<br />
 * @since JDK 1.8
 */
@Configuration
public class MyMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("lawslist.html").setViewName("lawslist");
        registry.addViewController("zixunlist.html").setViewName("zixunlist");
        registry.addViewController("index2.html").setViewName("index2");
        registry.addViewController("index.html").setViewName("index");
        registry.addViewController("hudong.html").setViewName("hudong");
        registry.addViewController("/").setViewName("index3");
        registry.addViewController("/123").setViewName("123");
        registry.addViewController("/1").setViewName("1");
        registry.addViewController("/lo").setViewName("登录");
    }
}
